import { ConfigProvider, App as AntdApp } from "antd"
import AppRouter from "./router"
import Context from "./utils/context"


function App() {


    return (
        <ConfigProvider theme={{
            token: {
                colorPrimary: '#2561ef',
                borderRadius: 4
            },
            components: {
                Menu: {
                    itemSelectedBg: '#2561ef',
                    itemSelectedColor: '#fff'
                }
            }
        }}>
            <AntdApp>
                <Context.Provider value={{ colorPrimary: '#2561ef' }}>
                    <AppRouter />
                </Context.Provider>
            </AntdApp>

        </ConfigProvider>
    )
}

export default App
